package com.aiinterview.subjectservice.mapper;

import com.aiinterview.model.subject.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /**
     * 根据用户名查询用户
     * @param userName
     * @return
     */
    @Select("select * from auth_user where user_name = #{userName}")
    User getUserByUserName(String userName);
}
